package pl.edu.agh.dsrg.sr.chat.consoleClient;

import org.jgroups.View;

import pl.edu.agh.dsrg.sr.chat.common.ManagementChannelNotificationAppender;
import pl.edu.agh.dsrg.sr.chat.protos.ChatOperationProtos.ChatAction;

public class ConsoleManagementNotificationAppender implements
		ManagementChannelNotificationAppender {

	@Override
	public void newView(View new_view) {
	}
	
	
	@Override
	public void eventOnManagementChannel(ChatAction action) {
		// System.out
		// .println("@@@ ConsoleManagementNotificationAppender.eventOnManagementChannel()");
		System.out.println("@@@ Channel: " + action.getChannel() + ", Action: "
				+ action.getAction() + ", nick: " + action.getNickname());
	}



}
